#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
char* my_strncpy(char* str1, char* str2, int n)
{
	char* ret = str1;
	while (n)
	{
		*str1 = *str2;
		str1++;
		str2++;
		n--;
	}
	return ret;
}
int main()
{
	char arr1[] = "HELLO World";
	char arr2[] = "Hello";
	my_strncpy(arr1, arr2, 5);
	printf("%s", arr1);
	return 0;
}